<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>NEWS-2.3.0 - RDoc Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="file">
  <!-- this is page.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0-preview2 NOT FOUND -->
  </div> <!-- end action bar -->


 <div class='wrapper hdiv'>

 


<nav id='vapp' role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
    <li><a href="#label-NEWS+for+Ruby+2.3.0">NEWS for Ruby 2.3.0</a>
    <li><a href="#label-Changes+since+the+2.2.0+release">Changes since the 2.2.0 release</a>
    <li><a href="#label-Language+changes">Language changes</a>
    <li><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)</a>
    <li><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)</a>
    <li><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Built-in+global+variables+compatibility+issues">Built-in global variables compatibility issues</a>
    <li><a href="#label-C+API+updates">C API updates</a>
    <li><a href="#label-Supported+platform+changes">Supported platform changes</a>
    <li><a href="#label-Implementation+improvements">Implementation improvements</a>
  </ul>
</div>

  <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>

  <div id="project-metadata">
   <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
    
<div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
    <li><a href="../NEWS/NEWS-1_8_7.html">NEWS-1.8.7</a>
    <li><a href="../NEWS/NEWS-1_9_1.html">NEWS-1.9.1</a>
    <li><a href="../NEWS/NEWS-1_9_2.html">NEWS-1.9.2</a>
    <li><a href="../NEWS/NEWS-1_9_3.html">NEWS-1.9.3</a>
    <li><a href="../NEWS/NEWS-2_0_0.html">NEWS-2.0.0</a>
    <li><a href="../NEWS/NEWS-2_1_0.html">NEWS-2.1.0</a>
    <li><a href="../NEWS/NEWS-2_2_0.html">NEWS-2.2.0</a>
    <li><a href="../NEWS/NEWS-2_3_0.html">NEWS-2.3.0</a>
    <li><a href="../NEWS/NEWS-2_4_0.html">NEWS-2.4.0</a>
    <li><a href="../NEWS/NEWS-2_5_0.html">NEWS-2.5.0</a>
    <li><a href="../NEWS/NEWS-2_6_0.html">NEWS-2.6.0</a>
    <li><a href="../NEWS/NEWS-2_7_0.html">NEWS-2.7.0</a>
    <li><a href="../NEWS/NEWS-3_0_0_md.html">NEWS-3.0.0</a>
    <li><a href="../NEWS/NEWS-3_1_0_md.html">NEWS-3.1.0</a>
    <li><a href="../NEWS/NEWS-3_2_0_md.html">NEWS-3.2.0</a>
    <li><a href="../bsearch_rdoc.html">bsearch</a>
    <li><a href="../bug_triaging_rdoc.html">bug_triaging</a>
    <li><a href="../case_mapping_rdoc.html">case_mapping</a>
    <li><a href="../character_selectors_rdoc.html">character_selectors</a>
    <li><a href="../command_injection_rdoc.html">command_injection</a>
    <li><a href="../contributing_md.html">contributing</a>
    <li><a href="../contributing/building_ruby_md.html">building_ruby</a>
    <li><a href="../contributing/documentation_guide_md.html">documentation_guide</a>
    <li><a href="../contributing/glossary_md.html">glossary</a>
    <li><a href="../contributing/making_changes_to_ruby_md.html">making_changes_to_ruby</a>
    <li><a href="../contributing/making_changes_to_stdlibs_md.html">making_changes_to_stdlibs</a>
    <li><a href="../contributing/reporting_issues_md.html">reporting_issues</a>
    <li><a href="../contributing/testing_ruby_md.html">testing_ruby</a>
    <li><a href="../dig_methods_rdoc.html">dig_methods</a>
    <li><a href="../distribution_md.html">distribution</a>
    <li><a href="../dtrace_probes_rdoc.html">dtrace_probes</a>
    <li><a href="../encodings_rdoc.html">encodings</a>
    <li><a href="../extension_ja_rdoc.html">extension.ja</a>
    <li><a href="../extension_rdoc.html">extension</a>
    <li><a href="../fiber_md.html">fiber</a>
    <li><a href="../format_specifications_rdoc.html">format_specifications</a>
    <li><a href="../globals_rdoc.html">globals</a>
    <li><a href="../implicit_conversion_rdoc.html">implicit_conversion</a>
    <li><a href="../keywords_rdoc.html">keywords</a>
    <li><a href="../maintainers_md.html">maintainers</a>
    <li><a href="../marshal_rdoc.html">marshal</a>
    <li><a href="../memory_view_md.html">memory_view</a>
    <li><a href="../optparse/argument_converters_rdoc.html">argument_converters</a>
    <li><a href="../optparse/creates_option_rdoc.html">creates_option</a>
    <li><a href="../optparse/option_params_rdoc.html">option_params</a>
    <li><a href="../optparse/tutorial_rdoc.html">tutorial</a>
    <li><a href="../packed_data_rdoc.html">packed_data</a>
    <li><a href="../ractor_md.html">ractor</a>
    <li><a href="../regexp_rdoc.html">regexp</a>
    <li><a href="../regexp/methods_rdoc.html">methods</a>
    <li><a href="../regexp/unicode_properties_rdoc.html">unicode_properties</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING.html">COPYING</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING_ja.html">COPYING.ja</a>
    <li><a href="../ruby_3_3_0_preview2/LEGAL.html">LEGAL</a>
    <li><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a>
    <li><a href="../ruby_3_3_0_preview2/README_ja_md.html">README.ja</a>
    <li><a href="../ruby_3_3_0_preview2/README_md.html">README</a>
    <li><a href="../security_rdoc.html">security</a>
    <li><a href="../signals_rdoc.html">signals</a>
    <li><a href="../standard_library_rdoc.html">standard_library</a>
    <li><a href="../strftime_formatting_rdoc.html">strftime_formatting</a>
    <li><a href="../syntax_rdoc.html">syntax</a>
    <li><a href="../syntax/assignment_rdoc.html">assignment</a>
    <li><a href="../syntax/calling_methods_rdoc.html">calling_methods</a>
    <li><a href="../syntax/comments_rdoc.html">comments</a>
    <li><a href="../syntax/control_expressions_rdoc.html">control_expressions</a>
    <li><a href="../syntax/exceptions_rdoc.html">exceptions</a>
    <li><a href="../syntax/literals_rdoc.html">literals</a>
    <li><a href="../syntax/methods_rdoc.html">methods</a>
    <li><a href="../syntax/miscellaneous_rdoc.html">miscellaneous</a>
    <li><a href="../syntax/modules_and_classes_rdoc.html">modules_and_classes</a>
    <li><a href="../syntax/pattern_matching_rdoc.html">pattern_matching</a>
    <li><a href="../syntax/precedence_rdoc.html">precedence</a>
    <li><a href="../syntax/refinements_rdoc.html">refinements</a>
    <li><a href="../timezones_rdoc.html">timezones</a>
    <li><a href="../windows_md.html">windows</a>
    <li><a href="../yjit/yjit_md.html">yjit</a>
    <li><a href="../yjit/yjit_hacking_md.html">yjit_hacking</a>
  </ul>
</div>

   </div>
  </div>
</nav>


<!--  carbon ads here -->

<div id='extraz'>
  <div class='adzbox-index'  >
   
  </div>
 </div>         


<main role="main" aria-label="Page NEWS/NEWS-2.3.0">

<h1 id="label-NEWS+for+Ruby+2.3.0"><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a> for Ruby 2.3.0<span><a href="#label-NEWS+for+Ruby+2.3.0">&para;</a> <a href="#top">&uarr;</a></span></h1>

<p>This document is a list of user visible feature changes made between releases except for bug fixes.</p>

<p>Note that each entry is kept so brief that no reason behind or reference information is supplied with.  For a full list of changes with all sufficient information, see the ChangeLog file or Redmine (e.g. <code>https://bugs.ruby-lang.org/issues/$FEATURE_OR_BUG_NUMBER</code>)</p>

<h2 id="label-Changes+since+the+2.2.0+release">Changes since the 2.2.0 release<span><a href="#label-Changes+since+the+2.2.0+release">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Language+changes">Language changes<span><a href="#label-Language+changes">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>frozen-string-literal pragma:</p>
<ul><li>
<p>new pragma, frozen-string-literal has been experimentally introduced. [Feature #8976]</p>
</li><li>
<p>besides, –enable/–disable=frozen-string-literal options also have been introduced. [Feature #8976]</p>
</li><li>
<p>command line options –debug or –debug=frozen-string-literal enable additional debugging mode which shows created location with at frozen object error (<a href="../RuntimeError.html"><code>RuntimeError</code></a>). [Feature #11725]</p>
</li></ul>
</li><li>
<p>safe navigation operator:</p>
<ul><li>
<p>new method call syntax, ‘object&amp;.foo’, method foo is called on ‘object’ if it is not nil. [Feature #11537]</p>

<p>This is similar to ‘try!’ in Active Support, except:</p>
<ul><li>
<p>method name is syntactically required</p>

<pre>obj.try! {} # valid
obj&amp;. {}    # syntax error</pre>
</li><li>
<p>arguments are evaluated only if a call is made:</p>

<pre class="ruby"><span class="ruby-identifier">obj</span>.<span class="ruby-identifier">try!</span>(<span class="ruby-value">:foo</span>, <span class="ruby-identifier">bar</span>())  <span class="ruby-comment"># bar() is always evaluated</span>
<span class="ruby-identifier">obj</span>&amp;.<span class="ruby-identifier">foo</span>(<span class="ruby-identifier">bar</span>())        <span class="ruby-comment"># bar() is conditionally evaluated</span>
</pre>
</li><li>
<p>attribute assignment is valid</p>

<pre class="ruby"><span class="ruby-identifier">obj</span>&amp;.<span class="ruby-identifier">attr</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
</pre>
</li></ul>
</li></ul>
</li><li>
<p>the did_you_mean gem:</p>
<ul><li>
<p>When a <a href="../NameError.html"><code>NameError</code></a> or <a href="../NoMethodError.html"><code>NoMethodError</code></a> occurs because of a typo in the name, the did_you_mean gem automatically suggests other names similar to the method name.</p>

<pre class="ruby"><span class="ruby-string">&quot;Yuki&quot;</span>.<span class="ruby-identifier">starts_with?</span>(<span class="ruby-string">&quot;Y&quot;</span>)
<span class="ruby-comment"># =&gt; NoMethodError: undefined method `starts_with?&#39; for &quot;Yuki&quot;:String</span>
<span class="ruby-comment">#    Did you mean?  start_with?</span>
</pre>
</li></ul>
</li><li>
<p>indented here document:</p>
<ul><li>
<p>new string literal, here document starts with ‘&lt;&lt;~`. refer doc/syntax/literals.rdoc for more details. [Feature #9098]</p>
</li></ul>
</li></ul>

<h3 id="label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)<span><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../ARGF.html"><code>ARGF</code></a></p>
<ul><li>
<p><a href="../ARGF.html#method-i-read_nonblock"><code>ARGF.read_nonblock</code></a> supports ‘exception: false’ like <a href="../IO.html#method-i-read_nonblock"><code>IO#read_nonblock</code></a>. [Feature #11358]</p>
</li></ul>
</li><li>
<p><a href="../Array.html"><code>Array</code></a></p>
<ul><li>
<p><a href="../Array.html#method-i-bsearch_index"><code>Array#bsearch_index</code></a> [Feature #10730]</p>
</li><li>
<p><a href="../Array.html#method-i-dig"><code>Array#dig</code></a> [Feature #11643]</p>
</li></ul>
</li><li>
<p><a href="../Comparable.html"><code>Comparable</code></a></p>
<ul><li>
<p><a href="../Comparable.html#method-i-3D-3D"><code>Comparable#==</code></a> no longer rescues exceptions [Feature #7688]</p>
</li></ul>
</li><li>
<p><a href="../Encoding.html"><code>Encoding</code></a></p>
<ul><li>
<p>new Encoding::IBM037 (alias ebcdic-cp-us; dummy)</p>
</li></ul>
</li><li>
<p><a href="../Enumerable.html"><code>Enumerable</code></a></p>
<ul><li>
<p><a href="../Enumerable.html#method-i-grep_v"><code>Enumerable#grep_v</code></a> is added as inverse version of <a href="../Enumerable.html#method-i-grep"><code>Enumerable#grep</code></a>. [Feature #11049]</p>
</li><li>
<p><a href="../Enumerable.html#method-i-chunk_while"><code>Enumerable#chunk_while</code></a> [Feature #10769]</p>
</li></ul>
</li><li>
<p><a href="../Enumerator/Lazy.html"><code>Enumerator::Lazy</code></a></p>
<ul><li>
<p><a href="../Enumerator/Lazy.html#method-i-grep_v"><code>Enumerator::Lazy#grep_v</code></a> [Feature #11773]</p>
</li></ul>
</li><li>
<p><a href="../File.html"><code>File</code></a></p>
<ul><li>
<p><a href="../File.html#method-c-mkfifo"><code>File.mkfifo</code></a> [Feature #11536]</p>
</li><li>
<p>Add File::TMPFILE corresponding to O_TMPFILE</p>
</li></ul>
</li><li>
<p><a href="../Hash.html"><code>Hash</code></a></p>
<ul><li>
<p><a href="../Hash.html#method-i-fetch_values"><code>Hash#fetch_values</code></a> [Feature #10017]</p>
</li><li>
<p><a href="../Hash.html#method-i-dig"><code>Hash#dig</code></a> [Feature #11643]</p>
</li><li>
<p>Hash#&lt;=, Hash#&lt;, Hash#&gt;=, Hash#&gt; [Feature #10984]</p>
</li><li>
<p><a href="../Hash.html#method-i-to_proc"><code>Hash#to_proc</code></a> [Feature #11653]</p>
</li></ul>
</li><li>
<p><a href="../IO.html"><code>IO</code></a></p>
<ul><li>
<p>new mode flag File::SHARE_DELETE is available. this flag means to permit deleting opened file on Windows, but currently this affect only files opened as binary.  [Feature #11218]</p>
</li><li>
<p>new option parameter ‘flags’ is added. this parameter is bitwise-ORed to oflags generated by normal mode argument. [Feature #11253]</p>
</li><li>
<p><a href="../IO.html#method-i-advise"><code>IO#advise</code></a> no longer raises Errno::ENOSYS in cases where it was detected at build time but not available at runtime.  [Feature #11806]</p>
</li></ul>
</li><li>
<p><a href="../Kernel.html"><code>Kernel</code></a></p>
<ul><li>
<p><a href="../Kernel.html#method-i-loop"><code>Kernel#loop</code></a>, when stopped by a <a href="../StopIteration.html"><code>StopIteration</code></a> exception, returns what the enumerator has returned instead of nil. [Feature #11498]</p>
</li></ul>
</li><li>
<p><a href="../Module.html"><code>Module</code></a></p>
<ul><li>
<p><a href="../Module.html#method-i-deprecate_constant"><code>Module#deprecate_constant</code></a> [Feature #11398]</p>
</li></ul>
</li><li>
<p><a href="../NameError.html"><code>NameError</code></a></p>
<ul><li>
<p><a href="../NameError.html#method-i-receiver"><code>NameError#receiver</code></a> is added to take the receiver object. [Feature #10881]</p>
</li></ul>
</li><li>
<p><a href="../Numeric.html"><code>Numeric</code></a></p>
<ul><li>
<p><a href="../Numeric.html#method-i-positive-3F"><code>Numeric#positive?</code></a> and <a href="../Numeric.html#method-i-negative-3F"><code>Numeric#negative?</code></a> are added, which return true when the receiver is positive and negative respectively. [Feature #11151]</p>
</li></ul>
</li><li>
<p><a href="../Proc.html"><code>Proc</code></a></p>
<ul><li>
<p><a href="../Proc.html#method-i-call"><code>Proc#call</code></a> (and also [], ===, yield) are optimized. Backtrace doesn’t show each method (show block lines directly). <a href="../TracePoint.html"><code>TracePoint</code></a> also ignores these calls. [Feature #11569]</p>
</li></ul>
</li><li>
<p>Queue (<a href="../Thread/Queue.html"><code>Thread::Queue</code></a>)</p>
<ul><li>
<p>Queue#close is added to notice a termination. [Feature #10600]</p>
</li></ul>
</li><li>
<p>Regexp/String: Updated Unicode version from 7.0.0 to 8.0.0</p>
</li><li>
<p><a href="../RubyVM/InstructionSequence.html"><code>RubyVM::InstructionSequence</code></a></p>
<ul><li>
<p>add the following methods as a primitive tool of iseq loader. See sample/iseq_loader.rb for usage. Note that loader does not have verifier so it is easy to cause critical problem by loading modified/broken binary data. See [Feature #11788] for more details. (experimental feature)</p>
<ul><li>
<p><a href="../RubyVM/InstructionSequence.html#method-i-to_binary"><code>RubyVM::InstructionSequence#to_binary</code></a>(extra_data = nil)</p>
</li><li>
<p><a href="../RubyVM/InstructionSequence.html#method-c-load_from_binary"><code>RubyVM::InstructionSequence.load_from_binary(binary)</code></a></p>
</li><li>
<p><a href="../RubyVM/InstructionSequence.html#method-c-load_from_binary_extra_data"><code>RubyVM::InstructionSequence.load_from_binary_extra_data(binary)</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../String.html"><code>String</code></a></p>
<ul><li>
<p><a href="../String.html#method-i-2B-40"><code>String#+@</code></a> and <a href="../String.html#method-i-2D-40"><code>String#-@</code></a> are added to get mutable/frozen strings. [Feature #11782]</p>
</li><li>
<p><a href="../String.html#method-c-new"><code>String.new</code></a> now accepts new option parameter ‘encoding’. [Feature #11785]</p>
</li></ul>
</li><li>
<p><a href="../Struct.html"><code>Struct</code></a></p>
<ul><li>
<p><a href="../Struct.html#method-i-dig"><code>Struct#dig</code></a> [Feature #11688]</p>
</li></ul>
</li><li>
<p><a href="../Thread.html"><code>Thread</code></a></p>
<ul><li>
<p><a href="../Thread.html#method-i-name"><code>Thread#name</code></a>, <a href="../Thread.html#method-i-name-3D"><code>Thread#name=</code></a> are added to handle thread names [Feature #11251]</p>
</li></ul>
</li></ul>

<h3 id="label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)<span><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../Array.html"><code>Array</code></a></p>
<ul><li>
<p><a href="../Array.html#method-i-select-21"><code>Array#select!</code></a>, <a href="../Array.html#method-i-keep_if"><code>Array#keep_if</code></a>, <a href="../Array.html#method-i-reject-21"><code>Array#reject!</code></a>, and <a href="../Array.html#method-i-delete_if"><code>Array#delete_if</code></a> no longer changes the receiver array instantly every time the block is called.  [Feature #10714]</p>
</li><li>
<p><a href="../Array.html#method-i-flatten"><code>Array#flatten</code></a> and <a href="../Array.html#method-i-flatten-21"><code>Array#flatten!</code></a> no longer try to call to_ary method on elements beyond the given level.  [Bug #10748]</p>
</li><li>
<p><a href="../Array.html#method-i-inspect"><code>Array#inspect</code></a> doesn’t raise error even if its content returns a string which is not compatible with <a href="../Encoding.html#method-c-default_external"><code>Encoding.default_external</code></a> as inspected result. [Feature #11801]</p>
</li></ul>
</li><li>
<p><a href="../Enumerable.html"><code>Enumerable</code></a></p>
<ul><li>
<p><a href="../Enumerable.html#method-i-chunk"><code>Enumerable#chunk</code></a> and <a href="../Enumerable.html#method-i-slice_before"><code>Enumerable#slice_before</code></a> no longer takes the initial_state argument.  [Feature #10958] Use a local variable instead to maintain a state.</p>
</li></ul>
</li><li>
<p><a href="../File/Stat.html"><code>File::Stat</code></a></p>
<ul><li>
<p>On Windows <a href="../File/Stat.html#method-i-ino"><code>File::Stat#ino</code></a> always returned 0, but now returns BY_HANDLE_FILE_INFORMATION.nFileIndexHigh/Low.  [Feature #11216]</p>
</li></ul>
</li><li>
<p><a href="../Hash.html"><code>Hash</code></a></p>
<ul><li>
<p><a href="../Hash.html#method-i-inspect"><code>Hash#inspect</code></a> doesn’t raise error even if its content returns a string which is not compatible with <a href="../Encoding.html#method-c-default_external"><code>Encoding.default_external</code></a> as inspected result. [Feature #11801]</p>
</li></ul>
</li><li>
<p><a href="../IO.html"><code>IO</code></a></p>
<ul><li>
<p><a href="../IO.html#method-i-close"><code>IO#close</code></a> doesn’t raise when the <a href="../IO.html"><code>IO</code></a> object is closed.  [Feature #10718]</p>
</li><li>
<p><a href="../IO.html#method-i-each_codepoint"><code>IO#each_codepoint</code></a> raises an exception at incomplete character before EOF when conversion takes place.  [Bug #11444]</p>
</li></ul>
</li><li>
<p><a href="../Module.html"><code>Module</code></a></p>
<ul><li>
<p><a href="../Module.html#method-i-define_method"><code>Module#define_method</code></a> and <a href="../Object.html#method-i-define_singleton_method"><code>Object.define_singleton_method</code></a> now require method body, <a href="../Proc.html"><code>Proc</code></a>, <a href="../Method.html"><code>Method</code></a>, or a block, and raise <a href="../ArgumentError.html"><code>ArgumentError</code></a> if no block is given directly.  [Bug #11283]</p>
</li></ul>
</li><li>
<p>pack/unpack (Array/String)</p>
<ul><li>
<p>j and J directives for pointer width integer type.  [Feature #11215]</p>
</li></ul>
</li></ul>

<h3 id="label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)<span><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Logger</p>
<ul><li>
<p>Logger#level= now supports symbol and string levels such as :debug, :info, :warn, :error, :fatal (case insensitive) [Feature #11695]</p>
</li><li>
<p>Logger#reopen is added to reopen a log device. [Feature #11696]</p>
</li></ul>
</li><li>
<p>io/wait</p>
<ul><li>
<p><a href="../IO.html#method-i-wait_readable"><code>IO#wait_readable</code></a> no longer checks FIONREAD, it may be used for non-bytestream <a href="../IO.html"><code>IO</code></a> such as listen sockets.</p>
</li></ul>
</li><li>
<p>Net::FTP</p>
<ul><li>
<p>Net::FTP#mlst is added.</p>
</li><li>
<p>Net::FTP#mlsd is added.</p>
</li></ul>
</li><li>
<p>nkf</p>
<ul><li>
<p>Merge nkf 2.1.4.</p>
</li></ul>
</li><li>
<p><a href="../ObjectSpace.html"><code>ObjectSpace</code></a> (objspace)</p>
<ul><li>
<p>ObjectSpace.count_symbols is added.</p>
</li><li>
<p>ObjectSpace.count_imemo_objects is added.</p>
</li><li>
<p>ObjectSpace.internal_class_of is added.</p>
</li><li>
<p>ObjectSpace.internal_super_of is added.</p>
</li></ul>
</li><li>
<p>OpenSSL</p>
<ul><li>
<p>OpenSSL::SSL::SSLSocket#accept_nonblock and OpenSSL::SSL::SSLSocket#connect_nonblock supports ‘exception: false`. [Feature #10532]</p>
</li></ul>
</li><li>
<p>Pathname</p>
<ul><li>
<p>Pathname#descend and Pathname#ascend supported blockless form. [Feature #11052]</p>
</li></ul>
</li><li>
<p>Socket</p>
<ul><li>
<p>Socket#connect_nonblock, Socket#accept_nonblock, TCPServer#accept_nonblock, UNIXServer#accept_nonblock, BasicSocket#recv_nonblock, BasicSocket#recvmsg_nonblock, BasicSocket#sendmsg_nonblock all support ‘exception: false` to return :wait_readable or :wait_writable symbols instead of raising <a href="../IO/WaitReadable.html"><code>IO::WaitReadable</code></a> or <a href="../IO/WaitWritable.html"><code>IO::WaitWritable</code></a> exceptions [Feature #10532] [Feature #11229]</p>
</li><li>
<p>BasicSocket#recv and BasicSocket#recv_nonblock allow an output <a href="../String.html"><code>String</code></a> buffer argument like <a href="../IO.html#method-i-read"><code>IO#read</code></a> and <a href="../IO.html#method-i-read_nonblock"><code>IO#read_nonblock</code></a> to reduce <a href="../GC.html"><code>GC</code></a> overhead [Feature #11242]</p>
</li></ul>
</li><li>
<p>StringIO</p>
<ul><li>
<p>In read-only mode, StringIO#set_encoding no longer sets the encoding of its buffer string.  Setting the encoding of the string directly without StringIO#set_encoding may cause unpredictable behavior now. [Bug #11827]</p>
</li></ul>
</li><li>
<p>timeout</p>
<ul><li>
<p>Object#timeout is now warned as deprecated when called.</p>
</li></ul>
</li></ul>

<h3 id="label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)<span><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>ext/coverage/coverage.c</p>
<ul><li>
<p>Coverage.peek_result: new method to allow coverage to be captured without stopping the coverage tool.  [Feature #10816]</p>
</li></ul>
</li><li>
<p>Fiddle</p>
<ul><li>
<p>Fiddle::Function#call releases the GVL.  [Feature #11607]</p>
</li></ul>
</li><li>
<p>io-console</p>
<ul><li>
<p>Update to io-console 0.4.5, and change the license to BSD 2-clause “Simplified” License.</p>
</li></ul>
</li><li>
<p>lib/base64.rb</p>
<ul><li>
<p>Base64.urlsafe_encode64: added a “padding” option to suppress the padding character (“=”).  [Feature #10740]</p>
</li><li>
<p>Base64.urlsafe_decode64: now it accepts not only correctly-padded input but also unpadded input.  [Feature #10740]</p>
</li></ul>
</li><li>
<p>lib/drb/drb.rb</p>
<ul><li>
<p>removed unused argument. <a href="https://github.com/ruby/ruby/pull/515">github.com/ruby/ruby/pull/515</a></p>
</li></ul>
</li><li>
<p>lib/matrix.rb</p>
<ul><li>
<p>Add Vector#round. <a href="https://github.com/ruby/ruby/pull/802">github.com/ruby/ruby/pull/802</a></p>
</li></ul>
</li><li>
<p>lib/webrick/utils.rb</p>
<ul><li>
<p>removed unused argument. <a href="https://github.com/ruby/ruby/pull/356">github.com/ruby/ruby/pull/356</a></p>
</li></ul>
</li><li>
<p>Net::FTP</p>
<ul><li>
<p>Connections are in passive mode per default now.  The default mode can be changed by Net::FTP.default_passive=.  [Feature #11612]</p>
</li></ul>
</li><li>
<p>Net::HTTP</p>
<ul><li>
<p>default value of Net::HTTP#open_timeout is now 60 (was nil).</p>
</li></ul>
</li><li>
<p>Net::Telnet</p>
<ul><li>
<p>Net::Telnet is extracted to net-telnet gem. It’s unmaintain code. [Feature #11083]</p>
</li></ul>
</li><li>
<p>Psych</p>
<ul><li>
<p>Updated to Psych 2.0.17</p>
</li></ul>
</li><li>
<p>Rake</p>
<ul><li>
<p>Rake is removed from stdlib.  [Feature #11025]</p>
</li></ul>
</li><li>
<p><a href="../RDoc.html"><code>RDoc</code></a></p>
<ul><li>
<p>Updated to <a href="../RDoc.html"><code>RDoc</code></a> 4.2.1.  For full release notes see:</p>

<p><a href="https://github.com/rdoc/rdoc/blob/master/History.rdoc#421--2015-12-22">github.com/rdoc/rdoc/blob/master/History.rdoc#421–2015-12-22</a></p>
</li></ul>
</li><li>
<p>RubyGems</p>
<ul><li>
<p>Updated to RubyGems 2.5.1.  For full release notes see:</p>

<p><a href="http://docs.seattlerb.org/rubygems/History_txt.html#label-2.5.0+-2F+2015-11-03">docs.seattlerb.org/rubygems/History_txt.html#label-2.5.0+-2F+2015-11-03</a> and <a href="http://docs.seattlerb.org/rubygems/History_txt.html#label-2.5.1+-2F+2015-12-10">docs.seattlerb.org/rubygems/History_txt.html#label-2.5.1+-2F+2015-12-10</a></p>
</li></ul>
</li></ul>

<h3 id="label-Built-in+global+variables+compatibility+issues">Built-in global variables compatibility issues<span><a href="#label-Built-in+global+variables+compatibility+issues">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>$SAFE</p>
<ul><li>
<p>$SAFE=2 and $SAFE=3 are obsolete.  If $SAFE is set to 2 or larger, an <a href="../ArgumentError.html"><code>ArgumentError</code></a> is raised.  [Feature #5455]</p>
</li></ul>
</li></ul>

<h3 id="label-C+API+updates">C API updates<span><a href="#label-C+API+updates">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>rb_define_class_id_under() now raises a <a href="../TypeError.html"><code>TypeError</code></a> exception when the class is already defined but its superclass does not match the given superclass, as well as definitions in ruby level.</p>
</li><li>
<p>rb_timespec_now() is added to fetch current datetime as struct timespec. [Feature #11558]</p>
</li><li>
<p>rb_time_timespec_new() is added to create a time object with epoch, nanosecond, and UTC/localtime/time offset arguments.  [Feature #11558]</p>
</li><li>
<p>rb_autoload() deprecated, use rb_funcall() instead.  [Feature #11664]</p>
</li><li>
<p>rb_compile_error_with_enc(), rb_compile_error(), and rb_compile_bug() deprecated.  these functions are exposed but only for internal use. external libraries should not use them.</p>
</li></ul>

<h3 id="label-Supported+platform+changes">Supported platform changes<span><a href="#label-Supported+platform+changes">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>OS/2 is no longer supported</p>
</li><li>
<p>BeOS is no longer supported</p>
</li><li>
<p>Borland-C is no longer supported</p>
</li><li>
<p>Haiku now stable and best effort</p>
</li></ul>

<h3 id="label-Implementation+improvements">Implementation improvements<span><a href="#label-Implementation+improvements">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Optimize <a href="../Proc.html#method-i-call"><code>Proc#call</code></a> to eliminate method frame construction. [Feature #11569]</p>
</li><li>
<p>Reconsidering method entry data structure. [Bug #11278]</p>
</li><li>
<p>Introducing new table data structure for ID keys tables used by method table and so on. New table structure is simple and fast than st_table. [Feature #11420]</p>
</li><li>
<p>Machine code level tuning for object allocation and method calling code. r52099, r52254</p>
</li><li>
<p><a href="../RubyVM/InstructionSequence.html"><code>RubyVM::InstructionSequence</code></a> is extended for future improvement. [Feature #11788]</p>
</li><li>
<p>Case dispatch is now optimized for all special constant literals including nil, true, and false.  Previously, only literal strings, symbols, integers and floats compiled to optimized case dispatch. [Feature #11769]</p>
</li><li>
<p>Instance variables on non-pure Ruby classes (T_DATA, T_FILE, etc..) is less expensive to store than before. [Feature #11170]</p>
</li><li>
<p>All accesses to members of big <a href="../Struct.html"><code>Struct</code></a> objects are performed in constant-time.  Previously, <a href="../Struct.html"><code>Struct</code></a> elements beyond the first 10 elements used a linear scan. [Feature #10585]</p>
</li><li>
<p>The Set class got several speed up. [Misc #10754], [r52591]</p>
</li><li>
<p>Socket and I/O-related improvements</p>
<ul><li>
<p>Calling overhead of most of new keyword-using I/O methods in</p>
<dl class="rdoc-list label-list"><dt>Feature #11229
<dd>
<p>is reduced by avoiding the inefficient C API</p>
</dd></dl>

<p>to parse keywords.  [Feature #11339]</p>
</li><li>
<p>The standard library is updated to use the improved exception-free non-blocking I/O from [Feature #11229]. This has the additional benefit of quieter $DEBUG output in addition to reducing expensive exceptions. [Feature #11044]</p>
</li><li>
<p>(Linux-only) waiting on a single FD anywhere in the stdlib no longer uses select(2), making it immune to slowdowns with high-numbered FDs. [Feature #11081] [Feature #11377]</p>
</li></ul>
</li><li>
<p>CGI.escapeHTML is optimized with C extension. <a href="https://github.com/ruby/ruby/pull/1164">github.com/ruby/ruby/pull/1164</a></p>
</li></ul>

</main>

</div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

